<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<div id="toolbar_${param.rel}"  style="float: left;width: 100%">
<form>

		<div  class="search-content " >
			<span>
				<label>名称：</label>
				<input	type="text" name="name" class="span3"  value=""/>
			</span>
			<br/>
		</div>
		

     	<div class="search-toolbar">
     	
			<span  style="float: left">
			        <a href="${rootURL}user/add.html?rel=${param.rel}" title="新增用户"  rel="${param.rel}" class="easyui-linkbutton" iconCls="icon-add" plain="true" width="800" height="500" target="dialog">新增</a>
			        <a href="${rootURL}user/update.html?id={id}&rel=${param.rel}" title="修改用户"  rel="${param.rel}" class="easyui-linkbutton" iconCls="icon-edit" plain="true" width="800" height="500" target="dialog" warn="请先选择一个">修改</a>
			        <a href="${rootURL}user/delete.html?id={id}&rel=${param.rel}"  rel="${param.rel}" class="easyui-linkbutton" iconCls="icon-remove"  target="selectedTodo" plain="true" >删除</a>
			        <a href="${rootURL}role/tree.html?id={id}&rel=${param.rel}" title="分配权限"  rel="${param.rel}" class="easyui-linkbutton" iconCls="icon-man" plain="true" width="400" height="420" target="dialog">分配角色</a>
			        <a href="${rootURL}user/permission.html?id={id}&rel=${param.rel}" title="查看权限"  rel="${param.rel}" class="easyui-linkbutton" iconCls="icon-filter" plain="true" width="400" height="420" target="dialog">查看权限</a>
			</span>
			<span style="float: right;">
				<button class="btn btn-primary btn-small" type="submit">查询</button>&nbsp;
				<button class="btn btn-small clear" type="button" >清空</button>&nbsp;
			</span>
     	</div>
		
</form>
</div>


<table id="dg_${param.rel}" toolbar="#toolbar_${param.rel}"  fitColumns="true" ></table>

<script type="text/javascript">
$(function(){

$('#dg_${param.rel}').datagrid({
    url:'${rootURL}user/query.html',
    columns:[[
        {field:'id',title:'id',width:100},
        {field:'name',title:'Name',width:100},
        {field:'username',title:'username',width:100},
        {field:'createTime',title:'createTime',width:100,formatter:formatterTime}
    ]]
});


});
</script>


